<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}

<div class="x-nav">
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
		<i class="layui-icon" style="line-height:30px">ဂ</i>
	</a>
</div>

<div class="x-body">
	<div class="layui-main">
    	<form class="layui-form" action="?" method="post">
    		<input type="hidden" name="m" value="{$m}" />
    		<input type="hidden" name="c" value="{$c}" />
    		<input type="hidden" name="id" value="{$info['id']}" />
    		<input type="hidden" name="operation" value="doadd"/>
    		<div class="layui-form-item">
    			<label class="layui-form-label">备注说明：</label>
    			<div class="layui-input-inline">
    				<input type="text" name="remark" required="true" value="{$info['remark']}" placeholder="邀请码备注" autocomplete="off" class="layui-input">
    			</div>
    			<div class="layui-form-mid layui-word-aux"></div>
    		</div>
			{loop $cateList as $key => $value}
				<div class="layui-form-item">
        			<label class="layui-form-label">{$value['name']}：</label>
        			<div class="layui-input-inline">
        				<input type="text" name="lott[{$key}]" required="true" value="{$info['remark']}" placeholder="最高限制：{$maxConf[$value['id']]['re_point']}" autocomplete="off" class="layui-input">
        			</div>
        			<div class="layui-form-mid layui-word-aux"></div>
        		</div>
			{/loop}
			
			<div class="layui-form-item">
    			<label class="layui-form-label">可重复:</label>
    			<div class="layui-input-inline">
					<input type="radio" name="is_once" value="1" title="多次" checked="checked">多次
					<input type="radio" name="is_once" value="2" title="一次" >一次
    			</div>
    		</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">邀请码性质:</label>
    			<div class="layui-input-inline">
					<input type="radio" name="type" value="1" title="代理" checked="checked">代理
					<input type="radio" name="type" value="2" title="玩家" >玩家
    			</div>
    		</div>
    		<div class="layui-form-item">
    			<label for="" class="layui-form-label"></label>
    			<div class="layui-input-inline">
    				<a class="layui-btn" href='javascript:history.bak();'>返回</a>
    				<button class="layui-btn" type="submit">确定</button>
    			</div>
    		</div>
    	</form>
	</div>
</div>

{template index/footer}
